import request from '@/utils/request'

export default{
    // 添加小节
    addVideoLsit(video){
        return request({
            url:'/eduservice/eduvideo/addVideo',
            method:'post',
            data:video
        })
    },

    //删除阿里云视频
    removeById(id) {
        return request({
            url: `/vod/video/`+id,
            method: 'delete'
        })
    },
    //删除小节
    removeVideoById(videoId){
        return request({
            url: `/eduservice/eduvideo/deleteVideo/`+videoId,
            method: 'delete'
            })
    },
    //修改小节
    editVideo(video){
        return request({
            url: `/eduservice/eduvideo/updateVideo`,
            method: 'post',
            data:video
            })
    },
    //根据id查询
    getVideoList(videoId){
        return request({
            url:`/eduservice/eduvideo/getVideoInfoById/`+videoId,
            method:'get'
        })
    }

}